package 行为型模式.策略模式;

/**
 * @Description TODO
 * @Author shallow
 * @Date 2023/3/7 20:02
 */

public class SalesMan {
    private Strategy strategy;

    public SalesMan(Strategy strategy) {
        this.strategy = strategy;
    }

    public Strategy getStrategy() {
        return strategy;
    }

    public void setStrategy(Strategy strategy) {
        this.strategy = strategy;
    }

    public void salesManShow(){
        System.out.print("我这个销售员的策略是:");
        strategy.show();
    }
}
